from celery import Celery
from day0822_django import settings
import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE",'day0822_django.settings')

app=Celery(
    'day0822_django',
    broker='redis://127.0.0.1:6379/4',
    backend='redis://127.0.0.1:6379/5'
)
app.autodiscover_tasks(settings.INSTALLED_APPS)